package com.demo.impl;

import com.demo.inter.UserInterface;
import com.demo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by win10 on 2020/2/5 10:59
 */
public class UserImpl implements UserInterface {

    @Autowired
    private User user;

    // @Value(value = "ok")
    private String msg;

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void say() {
        System.out.println("user is hello :" + msg);
        System.out.println("user:" + user);
    }
}
